import request from '@/utils/request'

// 查询供应商信息列表
export function superSupplistInfo(query) {
  return request({
    url: '/super/goodsstore/list',
    method: 'get',
    params: query
  })
}

// 查询供应商信息详细
export function superSuppgetInfo(supplierId) {
  return request({
    url: '/super/goodsstore/' + supplierId,
    method: 'get'
  })
}


// 导出供应商信息
export function superSuppexportInfo(query) {
  return request({
    url: '/super/goodsstore/export',
    method: 'get',
    params: query
  })
}


// 状态修改
export function changeStatus(supplierId, supplierStatus,customerId) {
  const data = {
    supplierId,
    supplierStatus,
    customerId
  }
  return request({
    url: '/super/goodsstore/changeStatus',
    method: 'put',
    data: data
  })
}

//商品查询
export function superProductList(query) {
  return request({
    url: '/super/goodsstore/superProductList',
    method: 'get',
    params: query
  })
}

//商品导出
export function superProexport(query) {
  return request({
    url: '/super/goodsstore/superProexport',
    method: 'get',
    params: query
  })
}




// 商品 详情
export function productqueryById(productId) {
  return request({
    url: '/super/goodsstore/productqueryById/' + productId,
    method: 'get'
  })
}


export function changeauditStatus(productId, auditStatus) {
  const data = {
    productId,
    auditStatus
  }
  return request({
    url: '/super/goodsstore/changeauditStatus',
    method: 'put',
    data: data
  })
}



// 订单查询
export function superOrderMasterList(query) {
  return request({
    url: '/super/goodsstore/superOrderMasterList',
    method: 'get',
    params: query
  })
}

// 订单导出
export function superOrderxport(query) {
  return request({
    url: '/super/goodsstore/superOrderxport',
    method: 'get',
    params: query
  })
}
